﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SystemSetting.aspx.cs" Inherits="Manager_User_PageData_SystemSetting" MasterPageFile="~/Manager/User/PageData/MasterPage.master" %>
<asp:Content ID="Head" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
<script type="text/javascript">
    function checkData() {
        if (window.confirm("确定修改配置吗?")) {
            document.forms[0].actions.value = "update";
            document.forms[0].submit();
            return true;
        }
        return false;
    }
    function delAll() {
        var actionForm = deleteAll();
        if (actionForm != null) {
            actionForm.action = "PresentChargeList.aspx?action=deleteAll&pageIndex=<%=currPageIndex%>";
            actionForm.submit();
        }
    }

    function confrimDel() {
        if (window.confirm("确定删除全部数据吗?")) {
            mainForm.ids.value = getId();
            mainForm.action = "SystemSetting.aspx?action=deleteAll&pageIndex=<%=currPageIndex%>";
            mainForm.submit();
        }
    }
</script>

</asp:Content>
<asp:Content ID="Content" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="30"><img src="images/tab_03.gif" width="15" height="30" /></td>
        <td width="1101" background="images/tab_05.gif"><img alt="" src="images/a.gif" width="16" height="16" /> <span class="STYLE4">系统参数配置</span></td>
        <td width="281" background="images/tab_05.gif"><table border="0" align="right" cellpadding="0" cellspacing="0">
            <tr>
              <td width="60"><table width="87%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="STYLE1"><div align="center"></div></td>
                    <td class="STYLE1"><div align="center"></div></td>
                  </tr>
              </table></td>
              <td width="60"><table width="90%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="STYLE1"><div align="center"></div></td>
                    <td class="STYLE1"><div align="center"></a></div></td>
                  </tr>
              </table></td>
            </tr>
        </table></td>
        <td width="14"><img alt="" src="images/tab_07.gif" width="14" height="30" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="9" background="images/tab_12.gif">&nbsp;</td>
        <td bgcolor="#f3ffe3">
        <table width="90%" border="0" align="center" cellpadding="0" cellspacing="1">
          <tr>
            <td width="20%" height="30"><div align="left" class="STYLE2 STYLE1 STYLE5">是否启用推广奖励</div></td>
            <td width="20%" height="30"><select style="width:158px" id="IsValidReward" name="IsValidReward" title="是否启用推广奖励">
            <%if (SystemSetting.IsValidReward)
              { %>
            <option value="0">禁用</option><option value="1" selected="selected">可用</option>
            <%} %>
            <%if (SystemSetting.IsValidReward == false)
              { %>
            <option value="0" selected="selected">禁用</option><option value="1">可用</option>
            <%} %>
            </select></td>
            <td width="20%" height="30"><div align="left" class="STYLE2 STYLE1 STYLE5">推广每个好友奖励积分</div></td>
            <td width="20%" height="30"><input type="text" name="RewardBalancePoint" id="RewardBalancePoint" title="推广每个好友奖励积分" value="<%=SystemSetting.RewardBalancePoint%>"/></td>
          </tr>
          <tr>
            <td height="30"><div align="left" class="STYLE2 STYLE1 STYLE5">是否每天消费积分</div></td>
            <td height="26"><select style="width:158px" id="IsEverydayChargeback" name="IsEverydayChargeback" title="是否每天扣积分">
            <%if (SystemSetting.IsEverydayChargeback)
              { %>
            <option value="0">否</option><option value="1" selected="selected">是</option>
            <%} %>
            <%if (SystemSetting.IsEverydayChargeback == false)
              { %>
            <option value="0" selected="selected">否</option><option value="1">是</option>
            <%} %>
            </select></td>
            <td height="30"><div align="left" class="STYLE2 STYLE1 STYLE5">关键字每天消费积分</div></td>
            <td height="26"><input type="text" title="关键字每次扣除积分" name="EverydayKeyWordBalancePoint" id="EverydayKeyWordBalancePoint" value="<%=SystemSetting.EverydayKeyWordBalancePoint%>"/></td>
          </tr>
          <tr>
            <td height="30"><div align="left" class="STYLE2 STYLE1 STYLE5">关键字增加后是否审核</div></td>
            <td height="26"><select style="width:158px" id="IsAddAudit" name="IsAddAudit" title="关键字增加后是否审核">
            <%if (SystemSetting.IsChangeAudit)
              { %>
            <option value="0">否</option><option value="1" selected="selected">是</option>
            <%} %>
            <%if (SystemSetting.IsChangeAudit == false)
              { %>
            <option value="0" selected="selected">否</option><option value="1">是</option>
            <%} %>
            </select></td>
            <td height="30"><div align="left" class="STYLE2 STYLE1 STYLE5">网店推广每天消费积分</div></td>
            <td height="30"><input type="text" name="EverydayShopBalancePoint" id="EverydayShopBalancePoint" value="<%=SystemSetting.EverydayShopBalancePoint%>" title="网站推广每次扣除积分"/></td>
          </tr>
          <tr>
          <td height="30"><div align="left" class="STYLE2 STYLE1 STYLE5">关键字修改后是否审核</div></td>
            <td height="26"><select style="width:158px" id="IsChangeAudit" name="IsChangeAudit" title="关键字修改后是否审核">
            <%if (SystemSetting.IsChangeAudit)
              { %>
            <option value="0">否</option><option value="1" selected="selected">是</option>
            <%} %>
            <%if (SystemSetting.IsChangeAudit == false)
              { %>
            <option value="0" selected="selected">否</option><option value="1">是</option>
            <%} %>
            </select></td>
            <td height="30"><div align="left" class="STYLE2 STYLE1 STYLE5">开户所需最低积分</div></td>
            <td height="30"><input type="text" name="LowPoint" id="LowPoint" value="<%=SystemSetting.LowPoint%>" title="开户所需最低积分"/></td>
          </tr>
          <tr>
          <td height="30"><div align="left" class="STYLE2 STYLE1 STYLE5">充值1元转换成积分</div></td>
            <td height="26"><input type="text" name="MoneyScale" id="MoneyScale" value="<%=SystemSetting.MoneyScale%>" title="充1元换<%=SystemSetting.MoneyScale*10%>个积分"/></td>
            <td height="30">&nbsp;</td>
            <td height="30">&nbsp;</td>
          </tr>
           <tr style="height:56px">
            <td>&nbsp;</td>
            <td height="36">
            <input type="button" value="保存" class="STYLE_BUTTON" onclick="checkData();"/></td>
          </tr>        
        </table></td>
        <td width="9" background="images/tab_16.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="29"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="29"><img src="images/tab_20.gif" width="15" height="29" /></td>
        <td background="images/tab_21.gif" width="100%"></td>
        <td width="14"><img src="images/tab_22.gif" width="14" height="29" /></td>
      </tr>
    </table></td>
  </tr>
</table>
<br />
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="30"><img src="images/tab_03.gif" width="15" height="30" /></td>
        <td width="1101" background="images/tab_05.gif"><img alt="" src="images/311.gif" width="16" height="16" /> <span class="STYLE4">充值奖励列表</span></td>
        <td width="281" background="images/tab_05.gif"><table border="0" align="right" cellpadding="0" cellspacing="0">
            <tr>
              <td width="60"><table width="87%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="STYLE1"><div align="center">
                        <input type="checkbox" name="checkboxAll" id="checkboxAll" value="checkbox" onclick="chktag()" />
                    </div></td>
                    <td class="STYLE1"><div align="center">全选</div></td>
                  </tr>
              </table></td>
                <td width="52"><table width="88%" border="0" cellpadding="0" cellspacing="0">
                 <tr>
                    <td class="STYLE1"><div align="center"><img alt="" src="images/001.gif" width="14" height="14" /></div></td>
                    <td class="STYLE1"><div align="center"><a href="PresentCharge.aspx?id=0&action=add">增加</a></div></div></td>
                  </tr>
              </table></td>
              <td width="52"><table width="88%" border="0" cellpadding="0" cellspacing="0">
             
                  <tr>
                    <td class="STYLE1"><div align="center"><img alt="" src="images/083.gif" width="14" height="14" /></div></td>
                    <td class="STYLE1"><div align="center"><a href="#" onclick="return confrimDel()">删除</a></div></div></td>
                  </tr>
              </table></td>
            </tr>
        </table></td>
        <td width="14"><img alt="" src="images/tab_07.gif" width="14" height="30" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="9" background="images/tab_12.gif">&nbsp;</td>
        <td bgcolor="#f3ffe3"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#c0de98" onmouseover="changeto()"  onmouseout="changeback()">
          <tr>
            <td width="6%" height="26" class="STYLE1 Table_TH_STYLE"><div align="center" class="STYLE2 STYLE1">选择</div></td>
            <td width="20%" height="26" class="STYLE1 Table_TH_STYLE"><div align="center" class="STYLE2 STYLE1">标题</div></td>
            <td width="20%" height="26" class="STYLE1 Table_TH_STYLE"><div align="center" class="STYLE2 STYLE1">一次性充值</div></td>
            <td width="20%" height="26" class="STYLE1 Table_TH_STYLE"><div align="center" class="STYLE2 STYLE1">奖励</div></td>
            <td width="8%" height="18" class="STYLE1 Table_TH_STYLE"><div align="center" class="STYLE2">编辑</div></td>
            <td width="8%" height="18" class="STYLE1 Table_TH_STYLE"><div align="center" class="STYLE2">删除</div></td>
          </tr>
          <% foreach (AD.Model.PresentChargeMod shop in Shops)
             { %>
          <tr>
            <td height="18" bgcolor="#FFFFFF"><div align="center" class="STYLE1">
              <input name="checkbox" type="checkbox" class="STYLE2" value="<%=shop.AutoID %>" />
            </div></td>
            <td height="18" bgcolor="#FFFFFF" class="STYLE2"><div align="center" class="STYLE2 STYLE1"><%=shop.Title%></div></td>
            <td height="18" bgcolor="#FFFFFF" class="STYLE2"><div align="center" class="STYLE2 STYLE1"><%=shop.OneTimeMoney%></div></td>
            <td height="18" bgcolor="#FFFFFF" class="STYLE2"><div align="center" class="STYLE2 STYLE1"><%=shop.PresentBalancePoint%></div></td>
            <td height="18" bgcolor="#FFFFFF"><div align="center"><img alt="" src="images/037.gif" width="9" height="9" /><span class="STYLE1"> [</span><a href="PresentCharge.aspx?id=<%=shop.AutoID%>&action=edit">修改</a><span class="STYLE1">]</span></div></td>
            <td height="18" bgcolor="#FFFFFF"><div align="center"><span class="STYLE2"><img alt="" src="images/010.gif" width="9" height="9" /> </span><span class="STYLE1">[</span><a href="PresentChargeList.aspx?id=<%=shop.AutoID%>&action=delete" onclick="return confirmDelete('<%=shop.Title %>')">删除</a><span class="STYLE1">]</span></div></td>
          </tr>
          <%} %>
        </table></td>
        <td width="9" background="images/tab_16.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
    <tr>
    <td height="29"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="29"><img src="images/tab_20.gif" width="15" height="29" /></td>
        <td background="images/tab_21.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="25%" height="29" nowrap="nowrap"><span class="STYLE1">共<%=MaxSize%>条纪录，当前第<%=currPageIndex + "/" + Shops.Count%>页，每<%=UtilHepler.PAGE_SIZE%>条纪录</span></td>
            <td width="75%" valign="top" class="STYLE1"><div align="right">
              <table width="352" height="20" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="62" height="22" valign="middle"><div align="right"><img alt="" src="images/first.gif" width="37" height="15" onclick="gopage(1)" /></div></td>
                  <td width="50" height="22" valign="middle"><div align="right"><img alt="" src="images/back.gif" width="43" height="15" onclick="gopage(<%=currPageIndex - 1 %>)"/></div></td>
                  <td width="54" height="22" valign="middle"><div align="right"><img alt="" src="images/next.gif" width="43" height="15" onclick="gopage(<%=currPageIndex + 1 %>)"/></div></td>
                  <td width="49" height="22" valign="middle"><div align="right"><img alt="" src="images/last.gif" width="37" height="15" onclick="gopage(<%=MaxPage %>)" /></div></td>
                  <td width="59" height="22" valign="middle"><div align="right">转到第</div></td>
                  <td width="25" height="22" valign="middle"><span class="STYLE7">
                    <input name="goPageIndex" id="goPageIndex" type="text" class="STYLE1" style="height:10px; width:25px;" size="5" />
                  </span></td>
                  <td width="23" height="22" valign="middle">页</td>
                  <td width="30" height="22" valign="middle"><img src="images/go.gif" width="37" height="15" onclick="gopage(document.getElementById('goPageIndex').value)" /></td>
                </tr>
              </table>
            </div></td>
          </tr>
        </table></td>
        <td width="14"><img src="images/tab_22.gif" width="14" height="29" /></td>
      </tr>
    </table></td>
  </tr>
</table>
</asp:Content>
